Skip to content

Apply activation quantization parameters selection.#1487

Merged
gouda-youichi merged 5 commits intoSonySemiconductorSolutions:mainfrom
kkawa14:apply_actq_params_selection_for_node_inside_fln
Jul 7, 2025
Merged

Apply activation quantization parameters selection.#1487
gouda-youichi merged 5 commits intoSonySemiconductorSolutions:mainfrom
kkawa14:apply_actq_params_selection_for_node_inside_fln

Conversation

@gouda-youichi
Copy link
Copy Markdown
Contributor

Apply activation quantization parameters selection (Stage3-4)

Pull Request Description:

Apply activation quantization parameters selection (Stage3-4)

Checklist before requesting a review:

  • I set the appropriate labels on the pull request.
  • I have added/updated the release note draft (if necessary).
  • I have updated the documentation to reflect my changes (if necessary).
  • All function and files are well documented.
  • All function and classes have type hints.
  • There is a licenses in all file.
  • The function and variable names are informative.
  • I have checked for code duplications.
  • I have added new unittest (if necessary).

Apply activation quantization parameters selection (#16)
Comment thread model_compression_toolkit/core/common/quantization/node_quantization_config.py Outdated
Comment thread model_compression_toolkit/core/common/quantization/node_quantization_config.py Outdated
…view) (#19)

Fixed PR comments.
- simplified a test.
- removed unnecessary codes.
- reverted about set_activation_quantization_param assert.
graph.node_to_out_stats_collector[n].hc._bins = np.array(data)
graph.node_to_out_stats_collector[n].hc._counts = np.array([1, 1])

quant_config = QuantizationConfig()
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if this is the same (default QuantizationConfig) for all test cases, it is clearer to just initialized it in the test and not as part of the graph setup

…onfig and remove unnecessary mocker arguement. (#21))

modify for quantconfig and remove unnecessary mocker arguement.
@gouda-youichi gouda-youichi merged commit fbd260e into SonySemiconductorSolutions:main Jul 7, 2025
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants